<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1">
<title>demo</title>
<jsp:include page="addProtype.jsp"></jsp:include> 
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="../js/jquery-1.9.1.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jqPaginator.js"></script>
<script src="../protype/protype.js"></script>
<!-- Bootstrap -->

<link href="../css/bootstrap.min.css" rel="stylesheet"/>
<link href="../protype/protype.css" rel="stylesheet"/>



<style>
.alllists {
	width: 75%;
}

.buttonSt {
	text-align: right;
}
</style>
</head>
<body>
	<div class="container-fluid alllists">
		<div class="row-fluid">
			<div class="span12">
				<div id="tools" class="buttonSt">
					<button id="addUser" class="btn btn-primary btn-large" type="button"
						data-toggle="modal" >添加</button>
					<button id="deleteBtn" class="btn btn-large btn-danger"
						type="button">删除</button>
				</div>
				<div>
				<div style="margin-top: 40px;">

					<table id="protypes" class="table table-bordered table-hover">
						<tr>
							<td><input id="selectAll" class="checkbox" type="checkbox" /></td>
							<td style="text-align:center">类型编号</td>
							<td style="text-align:center">类型名称</td>
							<td style="text-align:center">备注</td>
							<td colspan="2" style="text-align:center">操作</td>
							
							
						</tr>

						<c:forEach var="protype" items="${pageResult.resultList}">
							<tr>
								<td>
								<input name="typeId" id="typeId" class="checkbox" type="checkbox" value="${protype.id}" /></td>
								<td>${protype.typeCode}</td>
								<td>${protype.typeName}</td>
								<td>${protype.note}</td>
								<td>
								<button   name="showList" objId="${protype.id}"
										class="btn btn-sm-block" >查看产品列表</button></td>
					<td><button  name="editBtn" objId="${protype.id}" class="btn btn-sm-block">修改</button></td>
							</tr>
						</c:forEach>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div style="text-align: center;">
	<ul class="pagination" id="pagination2"></ul>
	</div>
	<div style="text-align: center;">
		<div id="pageResult">
			<input id="pageCount" type="hidden" value="${pageResult.pageCount}" />
			<input id="totalCount" type="hidden" value="${pageResult.totalCount}" />
			<input id="pageIndex" type="hidden" value="${pageResult.pageIndex}" />
			<input id="pageSize" type="hidden" value="${pageResult.pageSize}" />
		</div>
		<!-- footer -->

		<p>vinace-Demo by 御风林海</p>

	</div>

</body>

</html>